Skip to content

Skip publishing versions with existing release tags - #321

Merged
xSAVIKx merged 1 commit into
mainfrom
copilot/fix-publish-job-failure
Nov 16, 2026
Merged

xSAVIKx merged 1 commit into
mainfrom
copilot/fix-publish-job-failure

Conversation

@duglin

@duglin duglin commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Type of change:

  • Bug fix (non-breaking change which fixes an issue)

Description:

The publish job failed because a push to main attempted to upload version 2.2.0 again; PyPI rejected the existing wheel.

  • Release workflow: Skip publishing and tagging when the version already has a Git tag.
  • Documentation: Describe the release guard and recovery if tag creation fails after publishing.

Pre-submission checklist:

  • I have read the CONTRIBUTING.md file.
  • I have signed off my commits using git commit --signoff.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the documentation (README.md, CHANGELOG.md, etc.) as necessary.
  • I have run pre-commit and tox and all checks pass.
  • This pull request is ready to be reviewed.

@duglin duglin changed the title [WIP] Fix failing GitHub Actions job 'publish' Skip publishing versions with existing release tags Nov 16, 2026
@duglin
duglin requested a balanced review from Copilot November 16, 2026 14:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the tag-based PyPI release guard.

No open issues 🎉

What changed in this PR

This PR prevents duplicate PyPI uploads by using existing Git release tags to determine whether the SDK version needs publishing.

Changes:

  • Check for a tag matching __version__ before downloading artifacts or publishing.
  • Skip tag creation when the version is already tagged.
  • Document the release guard and recovery when publishing succeeds but tagging fails.
File Description
RELEASING.md Explains tag-based release skipping and recovery after tag creation fails.
.github/​workflows/​pypi-release.yml Adds a release-tag check and gates publishing and tagging on its result.

Review effort: Balanced

Skip releases with existing version tags

Signed-off-by: Doug Davis <duglin@gmail.com>
@duglin
duglin force-pushed the copilot/fix-publish-job-failure branch from ff0edf0 to 4430ee6 Compare November 16, 2026 14:37
@duglin
duglin marked this pull request as ready for review November 16, 2026 14:39
@duglin
duglin requested a balanced review from Copilot November 16, 2026 14:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the change that skips PyPI publishing when the version tag already exists.

No open issues 🎉

Review effort: Balanced

@xSAVIKx
xSAVIKx merged commit b31af60 into main Nov 16, 2026
36 checks passed
@xSAVIKx
xSAVIKx deleted the copilot/fix-publish-job-failure branch November 16, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants